<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="http.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="http.request.options.html">Request Options</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="http.constants" class="appendix">
  <h1>预定义常量</h1>

  <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
  <dl>

   <strong class="title">Constants usable with <span class="function"><a href="function.http-support.html" class="function">http_support()</a></span></strong>
   
    <dt id="constant.http-support">
     <strong><code>HTTP_SUPPORT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      querying for this constant will always return <strong><code>TRUE</code></strong>
     </span>
    </dd>

   
   
    <dt id="constant.http-support-requests">
     <strong><code>HTTP_SUPPORT_REQUESTS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      whether support to issue HTTP requests is given, ie. libcurl support was compiled in
     </span>
    </dd>

   
   
    <dt id="constant.http-support-magicmime">
     <strong><code>HTTP_SUPPORT_MAGICMIME</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      whether support to guess the Content-Type of HTTP messages is given, ie. libmagic support was compiled in
     </span>
    </dd>

   
   
    <dt id="constant.http-support-encodings">
     <strong><code>HTTP_SUPPORT_ENCODINGS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      whether support for zlib encodings is given, ie. libz support was compiled in
     </span>
    </dd>

   
   
    <dt id="constant.http-support-sslrequests">
     <strong><code>HTTP_SUPPORT_SSLREQUESTS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      whether support to issue HTTP requests over SSL is given, ie. linked libcurl was built with SSL support
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants usable with <span class="function"><a href="function.http-parse-params.html" class="function">http_parse_params()</a></span></strong>
   
    <dt id="constant.http-params-allow-comma">
     <strong><code>HTTP_PARAMS_ALLOW_COMMA</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      allow commands additionally to semicolons as separator
     </span>
    </dd>

   
   
    <dt id="constant.http-params-allow-failure">
     <strong><code>HTTP_PARAMS_ALLOW_FAILURE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      continue parsing after an error occurred
     </span>
    </dd>

   
   
    <dt id="constant.http-params-raise-error">
     <strong><code>HTTP_PARAMS_RAISE_ERROR</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      raise PHP warnings on parse errors
     </span>
    </dd>

   
   
    <dt id="constant.http-params-default">
     <strong><code>HTTP_PARAMS_DEFAULT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      all three values above, bitwise or&#039;ed
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants usable with <span class="function"><a href="function.http-parse-cookie.html" class="function">http_parse_cookie()</a></span> and its return value</strong>
   
    <dt id="constant.http-cookie-parse-raw">
     <strong><code>HTTP_COOKIE_PARSE_RAW</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      don&#039;t urldecode values
     </span>
    </dd>

   
   
    <dt id="constant.http-cookie-secure">
     <strong><code>HTTP_COOKIE_SECURE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      whether &quot;secure&quot; was found in the cookie&#039;s parameters list
     </span>
    </dd>

   
   
    <dt id="constant.http-cookie-httponly">
     <strong><code>HTTP_COOKIE_HTTPONLY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      whether &quot;httpOnly&quot; was found in the cookie&#039;s parameter list
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants usable with <span class="function"><a href="function.http-deflate.html" class="function">http_deflate()</a></span> and <a href="class.httpdeflatestream.html" class="classname">HttpDeflateStream</a></strong>
   
    <dt id="constant.http-deflate-level-def">
     <strong><code>HTTP_DEFLATE_LEVEL_DEF</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-deflate-level-min">
     <strong><code>HTTP_DEFLATE_LEVEL_MIN</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-deflate-level-max">
     <strong><code>HTTP_DEFLATE_LEVEL_MAX</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-deflate-type-zlib">
     <strong><code>HTTP_DEFLATE_TYPE_ZLIB</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-deflate-type-gzip">
     <strong><code>HTTP_DEFLATE_TYPE_GZIP</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-deflate-type-raw">
     <strong><code>HTTP_DEFLATE_TYPE_RAW</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-deflate-strategy-def">
     <strong><code>HTTP_DEFLATE_STRATEGY_DEF</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-deflate-strategy-filt">
     <strong><code>HTTP_DEFLATE_STRATEGY_FILT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-deflate-strategy-huff">
     <strong><code>HTTP_DEFLATE_STRATEGY_HUFF</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-deflate-strategy-rle">
     <strong><code>HTTP_DEFLATE_STRATEGY_RLE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-deflate-strategy-fixed">
     <strong><code>HTTP_DEFLATE_STRATEGY_FIXED</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants usable with <a href="class.httpdeflatestream.html" class="classname">HttpDeflateStream</a> and <a href="class.httpinflatestream.html" class="classname">HttpInflateStream</a></strong>
   
    <dt id="constant.http-encoding-stream-flush-none">
     <strong><code>HTTP_ENCODING_STREAM_FLUSH_NONE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      don&#039;t flush
     </span>
    </dd>

   
   
    <dt id="constant.http-encoding-stream-flush-sync">
     <strong><code>HTTP_ENCODING_STREAM_FLUSH_SYNC</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      synchronized flush only
     </span>
    </dd>

   
   
    <dt id="constant.http-encoding-stream-flush-full">
     <strong><code>HTTP_ENCODING_STREAM_FLUSH_FULL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      full data flush
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants used for error reporting and Exceptions</strong>
   
    <dt id="constant.http-e-runtime">
     <strong><code>HTTP_E_RUNTIME</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      runtime error
     </span>
    </dd>

   
   
    <dt id="constant.http-e-invalid-param">
     <strong><code>HTTP_E_INVALID_PARAM</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      an invalid parameter was passed
     </span>
    </dd>

   
   
    <dt id="constant.http-e-header">
     <strong><code>HTTP_E_HEADER</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      header() or similar operation failed
     </span>
    </dd>

   
   
    <dt id="constant.http-e-malformed-headers">
     <strong><code>HTTP_E_MALFORMED_HEADERS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      HTTP header parse error
     </span>
    </dd>

   
   
    <dt id="constant.http-e-request-method">
     <strong><code>HTTP_E_REQUEST_METHOD</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      unknown/invalid request method
     </span>
    </dd>

   
   
    <dt id="constant.http-e-message-type">
     <strong><code>HTTP_E_MESSAGE_TYPE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      with operation incompatible message type
     </span>
    </dd>

   
   
    <dt id="constant.http-e-encoding">
     <strong><code>HTTP_E_ENCODING</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      encoding/decoding error
     </span>
    </dd>

   
   
    <dt id="constant.http-e-request">
     <strong><code>HTTP_E_REQUEST</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      request failure
     </span>
    </dd>

   
   
    <dt id="constant.http-e-request-pool">
     <strong><code>HTTP_E_REQUEST_POOL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      request pool failure
     </span>
    </dd>

   
   
    <dt id="constant.http-e-socket">
     <strong><code>HTTP_E_SOCKET</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      socket exception
     </span>
    </dd>

   
   
    <dt id="constant.http-e-response">
     <strong><code>HTTP_E_RESPONSE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      response failure
     </span>
    </dd>

   
   
    <dt id="constant.http-e-url">
     <strong><code>HTTP_E_URL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      invalid URL
     </span>
    </dd>

   
   
    <dt id="constant.http-e-querystring">
     <strong><code>HTTP_E_QUERYSTRING</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      querystring operation failure
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants usable with <a href="class.httpmessage.html" class="classname">HttpMessage</a></strong>
   
    <dt id="constant.http-msg-none">
     <strong><code>HTTP_MSG_NONE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      the message is of no specific type
     </span>
    </dd>

   
   
    <dt id="constant.http-msg-request">
     <strong><code>HTTP_MSG_REQUEST</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      request style message
     </span>
    </dd>

   
   
    <dt id="constant.http-msg-response">
     <strong><code>HTTP_MSG_RESPONSE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      response style message
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants usable with <a href="class.httpquerystring.html" class="classname">HttpQueryString</a></strong>
   
    <dt id="constant.http-querystring-type-bool">
     <strong><code>HTTP_QUERYSTRING_TYPE_BOOL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-querystring-type-int">
     <strong><code>HTTP_QUERYSTRING_TYPE_INT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-querystring-type-float">
     <strong><code>HTTP_QUERYSTRING_TYPE_FLOAT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-querystring-type-string">
     <strong><code>HTTP_QUERYSTRING_TYPE_STRING</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-querystring-type-array">
     <strong><code>HTTP_QUERYSTRING_TYPE_ARRAY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-querystring-type-object">
     <strong><code>HTTP_QUERYSTRING_TYPE_OBJECT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants used for the <em>httpauthtype</em> <a href="http.request.options.html" class="link">request 选项</a></strong>
   
    <dt id="constant.http-auth-basic">
     <strong><code>HTTP_AUTH_BASIC</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      use &quot;basic&quot; authentication
     </span>
    </dd>

   
   
    <dt id="constant.http-auth-digest">
     <strong><code>HTTP_AUTH_DIGEST</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      use &quot;digest&quot; authentication
     </span>
    </dd>

   
   
    <dt id="constant.http-auth-ntlm">
     <strong><code>HTTP_AUTH_NTLM</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      use &quot;NTLM&quot; authentication
     </span>
    </dd>

   
   
    <dt id="constant.http-auth-gssneg">
     <strong><code>HTTP_AUTH_GSSNEG</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      use &quot;GSS-NEGOTIATE&quot; authentication
     </span>
    </dd>

   
   
    <dt id="constant.http-auth-any">
     <strong><code>HTTP_AUTH_ANY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      try any authentication scheme
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants used for the HTTP <em>protocol</em> version <a href="http.request.options.html" class="link">request 选项</a></strong>
   
    <dt id="constant.http-version-any">
     <strong><code>HTTP_VERSION_ANY</code></strong> 
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      no specific HTTP protocol version
     </span>
    </dd>

   
   
    <dt id="constant.http-version-1-0">
     <strong><code>HTTP_VERSION_1_0</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      HTTP version 1.0
     </span>
    </dd>

   
   
    <dt id="constant.http-version-1-1">
     <strong><code>HTTP_VERSION_1_1</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      HTTP version 1.1
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants used for the SSL <em>protocol</em> type and version <a href="http.request.options.html" class="link">request 选项</a></strong>
   
    <dt id="constant.http-ssl-version-any">
     <strong><code>HTTP_SSL_VERSION_ANY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      no specific SSL protocol version
     </span>
    </dd>

   
   
    <dt id="constant.http-ssl-version-tlsv1">
     <strong><code>HTTP_SSL_VERSION_TLSv1</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      use TLSv1 only
     </span>
    </dd>

   
   
    <dt id="constant.http-ssl-version-sslv3">
     <strong><code>HTTP_SSL_VERSION_SSLv3</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      use SSLv3 only
     </span>
    </dd>

   
   
    <dt id="constant.http-ssl-version-sslv2">
     <strong><code>HTTP_SSL_VERSION_SSLv2</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      use SSLv2 only
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants used for the <em>proxytype</em> <a href="http.request.options.html" class="link">request 选项</a></strong>
   
    <dt id="constant.http-proxy-socks4">
     <strong><code>HTTP_PROXY_SOCKS4</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      the proxy is a SOCKS4 type proxy
     </span>
    </dd>

   
   
    <dt id="constant.http-proxy-socks5">
     <strong><code>HTTP_PROXY_SOCKS5</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      the proxy is a SOCKS5 type proxy
     </span>
    </dd>

   
   
    <dt id="constant.http-proxy-http">
     <strong><code>HTTP_PROXY_HTTP</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      standard HTTP proxy
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants used for the <em>ipresolve</em> <a href="http.request.options.html" class="link">request 选项</a></strong>
   
    <dt id="constant.http-ipresolve-v4">
     <strong><code>HTTP_IPRESOLVE_V4</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      use IPv4 only for name lookups
     </span>
    </dd>

   
   
    <dt id="constant.http-ipresolve-v6">
     <strong><code>HTTP_IPRESOLVE_V6</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      use IPv6 only for name lookups
     </span>
    </dd>

   
   
    <dt id="constant.http-ipresolve-any">
     <strong><code>HTTP_IPRESOLVE_ANY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      use any IP mechanism only for name lookups
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Predefined HTTP request method constants</strong>
   
    <dt id="constant.http-meth-get">
     <strong><code>HTTP_METH_GET</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-head">
     <strong><code>HTTP_METH_HEAD</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-post">
     <strong><code>HTTP_METH_POST</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-put">
     <strong><code>HTTP_METH_PUT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-delete">
     <strong><code>HTTP_METH_DELETE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-options">
     <strong><code>HTTP_METH_OPTIONS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-trace">
     <strong><code>HTTP_METH_TRACE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-connect">
     <strong><code>HTTP_METH_CONNECT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-propfind">
     <strong><code>HTTP_METH_PROPFIND</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-proppatch">
     <strong><code>HTTP_METH_PROPPATCH</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-mkcol">
     <strong><code>HTTP_METH_MKCOL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-copy">
     <strong><code>HTTP_METH_COPY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-move">
     <strong><code>HTTP_METH_MOVE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-lock">
     <strong><code>HTTP_METH_LOCK</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-unlock">
     <strong><code>HTTP_METH_UNLOCK</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-version-control">
     <strong><code>HTTP_METH_VERSION_CONTROL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-report">
     <strong><code>HTTP_METH_REPORT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-checkout">
     <strong><code>HTTP_METH_CHECKOUT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-checkin">
     <strong><code>HTTP_METH_CHECKIN</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-uncheckout">
     <strong><code>HTTP_METH_UNCHECKOUT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-mkworkspace">
     <strong><code>HTTP_METH_MKWORKSPACE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-update">
     <strong><code>HTTP_METH_UPDATE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-label">
     <strong><code>HTTP_METH_LABEL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-merge">
     <strong><code>HTTP_METH_MERGE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-baseline-control">
     <strong><code>HTTP_METH_BASELINE_CONTROL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-mkactivity">
     <strong><code>HTTP_METH_MKACTIVITY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.http-meth-acl">
     <strong><code>HTTP_METH_ACL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants usable with <span class="function"><a href="function.http-redirect.html" class="function">http_redirect()</a></span></strong>
   
    <dt id="constant.http-redirect">
     <strong><code>HTTP_REDIRECT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      guess applicable redirect method
     </span>
    </dd>

   
   
    <dt id="constant.http-redirect-perm">
     <strong><code>HTTP_REDIRECT_PERM</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      permanent redirect (<em>301 Moved permanently</em>)
     </span>
    </dd>

   
   
    <dt id="constant.http-redirect-found">
     <strong><code>HTTP_REDIRECT_FOUND</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      standard redirect (<em>302 Found</em>)
     </span>
     <blockquote class="note"><p><strong class="note">Note</strong>: 
      <span class="simpara">
       RFC 1945 and RFC 2068 specify that the client is not allowed
       to change the method on the redirected request.  However, most
       existing user agent implementations treat 302 as if it were a 303
       response, performing a GET on the Location field-value regardless
       of the original request method. The status codes 303 and 307 have
       been added for servers that wish to make unambiguously clear which
       kind of reaction is expected of the client.
      </span>
     </p></blockquote>
    </dd>

   
   
    <dt id="constant.http-redirect-post">
     <strong><code>HTTP_REDIRECT_POST</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      redirect applicable to POST requests (<em>303 See other</em>)
     </span>
    </dd>

   
   
    <dt id="constant.http-redirect-proxy">
     <strong><code>HTTP_REDIRECT_PROXY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      proxy redirect (<em>305 Use proxy</em>)
     </span>
    </dd>

   
   
    <dt id="constant.http-redirect-temp">
     <strong><code>HTTP_REDIRECT_TEMP</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      temporary redirect (<em>307 Temporary Redirect</em>)
     </span>
    </dd>

   
  </dl>

  <dl>

   <strong class="title">Constants usable with <span class="function"><a href="function.http-build-url.html" class="function">http_build_url()</a></span></strong>
   
    <dt id="constant.http-url-replace">
     <strong><code>HTTP_URL_REPLACE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      replace every part of the first URL when there&#039;s one of the second URL
     </span>
    </dd>

   
   
    <dt id="constant.http-url-join-path">
     <strong><code>HTTP_URL_JOIN_PATH</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      join relative paths
     </span>
    </dd>

   
   
    <dt id="constant.http-url-join-query">
     <strong><code>HTTP_URL_JOIN_QUERY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      join query strings
     </span>
    </dd>

   
   
    <dt id="constant.http-url-strip-user">
     <strong><code>HTTP_URL_STRIP_USER</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      strip any user authentication information
     </span>
    </dd>

   
   
    <dt id="constant.http-url-strip-pass">
     <strong><code>HTTP_URL_STRIP_PASS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      strip any password authentication information
     </span>
    </dd>

   
   
    <dt id="constant.http-url-strip-auth">
     <strong><code>HTTP_URL_STRIP_AUTH</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      strip any authentication information
     </span>
    </dd>

   
   
    <dt id="constant.http-url-strip-port">
     <strong><code>HTTP_URL_STRIP_PORT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      strip explicit port numbers
     </span>
    </dd>

   
   
    <dt id="constant.http-url-strip-path">
     <strong><code>HTTP_URL_STRIP_PATH</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      strip complete path
     </span>
    </dd>

   
   
    <dt id="constant.http-url-strip-query">
     <strong><code>HTTP_URL_STRIP_QUERY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      strip query string
     </span>
    </dd>

   
   
    <dt id="constant.http-url-strip-fragment">
     <strong><code>HTTP_URL_STRIP_FRAGMENT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      strip any fragments (#identifier)
     </span>
    </dd>

   
   
    <dt id="constant.http-url-strip-all">
     <strong><code>HTTP_URL_STRIP_ALL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      strip anything but scheme and host
     </span>
    </dd>

   
  </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="http.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="http.request.options.html">Request Options</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
